home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / netz / amyboard / amiga / args.h < prev    next >
C/C++ Source or Header  |  1995-08-12  |  2KB  |  56 lines

  1. /**
  2. *** args.h -- Include file for ParseArgs(), an ReadArgs() replacement
  3. *** Copyright 1995, Jochen Wiedmann
  4. ***
  5. *** ------------------------------------------------------------------------
  6. *** This program is free software; you can redistribute it and/or modify
  7. *** it under the terms of the GNU General Public License as published by
  8. *** the Free Software Foundation; either version 2 of the License, or
  9. *** (at your option) any later version.
  10. ***
  11. *** This program is distributed in the hope that it will be useful,
  12. *** but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. *** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. *** GNU General Public License for more details.
  15. ***
  16. *** You should have received a copy of the GNU General Public License
  17. *** along with this program; if not, write to the Free Software
  18. *** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19. *** ------------------------------------------------------------------------
  20. ***
  21. *** See the file ChangeLog for a revision history.
  22. ***/
  23.  
  24. #ifndef _ARGS_H
  25. #define _ARGS_H
  26.  
  27. #include <utility/tagitem.h>
  28.  
  29.  
  30. /**
  31. ***  prototypes
  32. **/
  33. extern ULONG ParseArgsA(int argc, char *argv[], struct TagItem *);
  34. extern ULONG ParseArgs(int argc, char *argv[], Tag firsttag, ...);
  35.  
  36.  
  37. /**
  38. ***  Tag ID's
  39. **/
  40. #define PARSEARGS_BASE (TAG_USER | (86 << 16) | 0x100)
  41.  
  42. #define PARSEARGS_ARGNAME                   (PARSEARGS_BASE | 0x00)
  43. #define PARSEARGS_TYPE                      (PARSEARGS_BASE | 0x01)
  44. #define PARSEARGS_TYPE_STRING               0
  45. #define PARSEARGS_TYPE_BOOL                 1
  46. #define PARSEARGS_TYPE_INTEGER              2
  47. #define PARSEARGS_TYPE_FLOAT                3
  48. #define PARSEARGS_VALPTR                    (PARSEARGS_BASE | 0x02)
  49. #define PARSEARGS_PREFSFILE                 (PARSEARGS_BASE | 0x03)
  50. #define PARSEARGS_HELPSTRING                (PARSEARGS_BASE | 0x04)
  51. #define PARSEARGS_MULTIARG                  (PARSEARGS_BASE | 0x05)
  52. #define PARSEARGS_REQUIRED                  (PARSEARGS_BASE | 0x06)
  53.  
  54.  
  55. #endif  /* !_ARGS_H */
  56.